package com.FrameWork.Common;

import com.FrameWork.Entity.IPageChange;
import android.support.v4.view.ViewPager.OnPageChangeListener;

/** 指引页面改监听器 */
public class GuidePageChangeListener implements OnPageChangeListener {

	private IPageChange pagechange; 
	
	public GuidePageChangeListener(IPageChange page)
	{
		pagechange =page;
	}
	public void onPageScrollStateChanged(int arg0) {

	}

	public void onPageScrolled(int arg0, float arg1, int arg2) {
	}

	public void onPageSelected(int index) {
		if(pagechange != null)
			pagechange.setCurrentPoint(index);
	
	}

}
